<?php

class DBString extends DBField {

    public static function create($value) {

        $result = parent::create($value);

        settype($value, 'string');
        $result = trim($value);

        if(strlen($result) == 0)
            $result = NULL;
        
        return $result;
    }
}